<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="" 
 style="margin-left: 10%;">

    <!-- id -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('无人机ID')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-uav_id" data-rule="required" class="form-control" name="row[uav_id]" type="text"
            value="{$row.uav_id}">
        </div>
    </div>
    <!-- 产品编号 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('产品编号')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-ucode" data-rule="required" class="form-control" name="row[ucode]" type="text"
            value="{$row.ucode}">
        </div>
    </div>
    <!-- 无人机型号 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('无人机型号')}:</label>
        <div class="col-xs-12 col-sm-5">
            {:build_select('row[uavtype_id]', $uavtype_list, $row['uavtype_id'], ['class'=>'selectpicker', 'required'=>''])}
        </div>
    </div>
    <!-- 无人机状态 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('无人机状态')}:</label>
        <div class="col-xs-12 col-sm-5">
            <select  id="c-status" class="form-control selectpicker" name="row[status]">
                <option value="0" {if $row.status==0}selected{/if}>待命</option>
                <option value="1" {if $row.status==1}selected{/if}>运行中</option>
                <option value="2" {if $row.status==2}selected{/if}>维修中</option>
            </select>
        </div>
    </div>
    <!-- 归属管理人 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('归属管理人')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-owner_name" class="form-control" name="row[owner_name]" type="text"
            value="{$row.owner_name}">
        </div>
    </div>
    <!-- 归属管理人手机 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('归属管理人手机号')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-owner_phone" class="form-control" name="row[owner_phone]" type="text"
            value="{$row.owner_phone}">
        </div>
    </div>
    <!-- 所属组织 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('所属组织')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-organization" class="form-control" name="row[organization]" type="text"
            value="{$row.organization}">
        </div>
    </div>
    <!-- 是否上链 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('是否上链')}:</label>
        <div class="col-xs-12 col-sm-5">
            <select  id="c-is_sl" class="form-control selectpicker" name="row[is_sl]">
                <option value="0" {if $row.is_sl==0}selected{/if}>否</option>
                <option value="1" {if $row.is_sl==1}selected{/if}>是</option>
            </select>
        </div>
    </div>
    <!-- 是否上云 -->
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-3">{:__('是否上云')}:</label>
        <div class="col-xs-12 col-sm-5">
            <select  id="c-is_sy" class="form-control selectpicker" name="row[is_sy]">
                <option value="0" {if $row.is_sy==0}selected{/if}>否</option>
                <option value="1" {if $row.is_sy==1}selected{/if}>是</option>
            </select>
        </div>
    </div>
    <!-- 运行城市 -->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('运行城市')}:</label>
        <div class="col-xs-12 col-sm-5" >
            <input id="c-running_city" class="form-control" name="row[running_city]" type="text"
            value="{$row.running_city}">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-5" style="text-align: center;">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>


<style>
    .col-sm-5{
        display: flex;
        align-items: center;
    }
</style>